import {} from 'react'
import style from './index.module.less'
import classNames from 'classnames'

function Main ({ index, value, second = false, third = false }) {
  return (
    <div className={style.container}>
      <div className={classNames(style.index, {[style.second]: second, [style.third]: third})}>{index}</div>
      <div className={style.value}>{value}</div>
    </div>
  )
}

export default Main
